package com.heima.common.exception;

import com.heima.model.common.enums.AppHttpCodeEnum;
/*
 * @description 这里是用户自定义的异常类，用于告知用户某些特定的行为会触发异常。
 * @params 
 * @return 
 */

public class CustomException extends RuntimeException {

    private AppHttpCodeEnum appHttpCodeEnum;

    public CustomException(AppHttpCodeEnum appHttpCodeEnum){
        this.appHttpCodeEnum = appHttpCodeEnum;
    }

    public AppHttpCodeEnum getAppHttpCodeEnum() {
        return appHttpCodeEnum;
    }
}
